#ifndef _USER_SDSPI_H
#define _USER_SDSPI_H

#include "user_max98357a.h" 
#include "driver/spi_common.h"
#include "sdmmc_cmd.h"


#define SPI_MOSI_GPIO 23
#define SPI_MISO_GPIO 19
#define SPI_SCLK_GPIO 18
#define SPI_CS_GPIO 26

#define SPI_DMA_CHAN        SPI_DMA_CH_AUTO
#define SD_MOUNT_POINT      "/sdcard"

#define DIR_NUM_MAX 10 
#define DIR_NAM_LEN_MAX 50

extern sdmmc_host_t host;
extern sdmmc_card_t* card;

void mount_sdcard(void);
struct wavinfo get_wav_msg(char * wav_name);
char* char_change_A2a(char *raw_char);
void dir_list(char *path);
void print_wav_list(void);
void test_sd_list(void);

#endif